package com.roocon.design_pattern.chapter05_guard_suspension;

public class Client {
  public static void main(String[] args) throws InterruptedException {
    final RequestQueue queue = new RequestQueue();
    new ClientThread(queue, "Alex").start();
    ServiceThread serviceThread = new ServiceThread(queue);
    serviceThread.start();
    Thread.sleep(1_000);
    serviceThread.close();
  }
}
